#ifndef SENSORDATALISTENER_H
#define SENSORDATALISTENER_H

#include <sensrvdatalistener.h>

#include "sensors.h"

class CSensorDataListener :public MSensrvDataListener
    {
public:

        CSensorDataListener(int	transactionID, Sensors &sensors);

    virtual ~CSensorDataListener();

public://From MSensorDataListener

    void DataReceived( CSensrvChannel& aChannel,
                       TInt aCount,
                       TInt aDataLost );

    void DataError( CSensrvChannel& aChannel,
                    TSensrvErrorSeverity aError );
                    
    void GetDataListenerInterfaceL( TUid aInterfaceUid, 
                                    TAny*& aInterface );

private:

private:

	Sensors &m_sensors;
        int     m_transactionID;
    };

#endif //SENSORDATALISTENER
